import Vue from 'vue'


import {
    tabbar,
    TabbarItem,
    Icon,
    Swipe,
    SwipeItem,
    Grid,
    GridItem,
    PullRefresh,
    Toast,
    List,
    Sidebar,
    SidebarItem,
    Search,
    NavBar,
    GoodsAction,
    GoodsActionIcon,
    GoodsActionButton,
    Card,
    Form,
    Field,
    ActionSheet,
    Button,
    Lazyload,
    SubmitBar,
    Checkbox,
    Loading,
    Stepper,
    CheckboxGroup,
    SwipeCell,
    ContactCard,
    Area,
    Cascader,
    Popup,
    Cell,
    CellGroup,
    Switch,
    AddressEdit,
    ContactList,
    Tag



} from 'vant'
import App from './App.vue'
import router from './router'

import store from './store'
import '@assets/css/reset.css'
import '@assets/icon/iconfont.css'
import loading from '@/pulgins/loading'

// Vue.prototype.$http = axios
Vue.use(loading)

Vue.config.productionTip = false
Vue.use(TabbarItem)
    .use(Icon)
    .use(tabbar)
    .use(SwipeItem)
    .use(Swipe)
    .use(Grid)
    .use(GridItem)
    .use(PullRefresh)
    .use(Toast)
    .use(List)
    .use(Sidebar)
    .use(SidebarItem)
    .use(Search)
    .use(NavBar)
    .use(GoodsAction)
    .use(GoodsActionIcon)
    .use(GoodsActionButton)
    .use(Card)
    .use(Form)
    .use(Field)
    .use(ActionSheet)
    .use(Button)
    .use(Lazyload,{
        loading:'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fwww.uxys.com%2Fu%2Fcms%2Fwww%2F201912%2F10131710tc66.gif&refer=http%3A%2F%2Fwww.uxys.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1627807903&t=bc2efd0bdb523939e97f4ae136be9795',
        preload:'1',
        error:'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fbpic.588ku.com%2Felement_origin_min_pic%2F01%2F36%2F19%2F66573c0aa24139d.jpg&refer=http%3A%2F%2Fbpic.588ku.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1627808297&t=eae883cba618604115f68e0adf3b2b8f'
    })
    .use(SubmitBar)
    .use(Checkbox)
    .use(Loading)
    .use(Stepper)
    .use(CheckboxGroup)
    .use(SwipeCell)
    .use(ContactCard)
    .use(Area)
    .use(Cascader)
    .use(Popup)
    .use(Cell)
    .use(CellGroup)
    .use(Switch)
    .use(AddressEdit)
    .use(ContactList)
    .use(Tag)
new Vue({
    router,
    store,
    render: h => h(App)

}).$mount('#app')